import hyRequest from ".."
import type { IAccount } from "@/types"

export function accountLoginRequest(account: IAccount) {
  return hyRequest.post({
    url: "/login",
    data: account
  })
}
// 获取用户信息
export function getUSerInfoById(id: number) {
  return hyRequest.get({
    url: `/users/${id}`
  })
}

// 获取用户菜单
export function getUSerManusByRoleId(id: number) {
  return hyRequest.get({
    url: `/role/${id}/menu`
  })
}
